import numpy as np 

data = np.array([[0,1,2,3,4,5,6,7,8,9]
                ,[1,2,3,4,5,6,7,8,9,0]
                ,[2,3,4,5,6,7,8,9,0,1]])

print(data)


d1 = data[0]
d2 = data[1:] 
d3 = data[:1]     # 行 截取
d4 = data[:, :2]  # 列 截取        [行, 列]
d5 = data[1:, :2] # 行,列 截取     [行, 列]
d6 = data[1]
d7 = data[0][1]
print(d1)
print('-------------------------')
print(d2)
print('-------------------------')
print(d3)
print('-------------------------')
print(d4)
print('-------------------------')
print(d5)
print('-------------------------')
print(d6)
print('-------------------------')
print(d7)
print('-------------------------')
